package com.team.easybuy.mapper;

import com.team.easybuy.entity.UserAddress;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface AddressMapper {

    List<UserAddress> selectUserAddressListByUserId(Integer userId);
    UserAddress selectUserAddress(Integer id);
    int insertUserAddress(UserAddress userAddress);
    int deleteUserAddress(Integer id);
    int updateUserAddress(UserAddress userAddress);
    int updateUserAddressisDefault(Integer userId);
    int countUserAddressByUserId(Integer userId);

}
